package com.zz.inventory.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 账单对象 franchise_bills
 * 
 * @author zz
 * @date 2025-07-03
 */
public class FranchiseBills extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 账单ID */
    private Long billId;

    /** 学校ID */
    @Excel(name = "学校ID")
    private Integer schoolId;

    public Integer getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Integer schoolId) {
        this.schoolId = schoolId;
    }

    /** 套餐ID */
    @Excel(name = "套餐ID")
    private Long packageId;

    /** 账单编号 */
    @Excel(name = "账单编号")
    private String billNo;

    /** 购买年限 */
    @Excel(name = "购买年限")
    private Long serviceYears;

    /** 应付金额 */
    @Excel(name = "应付金额")
    private BigDecimal amount;

    /** 支付截止日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dueDate;

    /** 账单状态 */
    @Excel(name = "账单状态")
    private String status;

    /** 支付时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String paymentTime;

    public void setBillId(Long billId) 
    {
        this.billId = billId;
    }

    public Long getBillId() 
    {
        return billId;
    }



    public void setPackageId(Long packageId) 
    {
        this.packageId = packageId;
    }

    public Long getPackageId() 
    {
        return packageId;
    }

    public void setBillNo(String billNo) 
    {
        this.billNo = billNo;
    }

    public String getBillNo()
    {
        return billNo;
    }

    public void setServiceYears(Long serviceYears) 
    {
        this.serviceYears = serviceYears;
    }

    public Long getServiceYears() 
    {
        return serviceYears;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setDueDate(Date dueDate) 
    {
        this.dueDate = dueDate;
    }

    public Date getDueDate() 
    {
        return dueDate;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setPaymentTime(String paymentTime)
    {
        this.paymentTime = paymentTime;
    }

    public String getPaymentTime()
    {
        return paymentTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("billId", getBillId())
            .append("schoolId", getSchoolId())
            .append("packageId", getPackageId())
            .append("billNo", getBillNo())
            .append("serviceYears", getServiceYears())
            .append("amount", getAmount())
            .append("dueDate", getDueDate())
            .append("status", getStatus())
            .append("paymentTime", getPaymentTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
